package com.ikas.ai.server.module.instance.enums;

/**
 * @author hu.bowei@ikasinfo.com
 * @date 2023-5-6 13:43:58
 * t_work_flow_instance表中的state
 * 状态，0=进行中、1=稳态、2=完成、3=失败
 */
public enum WorkFlowInstanceStateEnum {


    PROCESSING(0, "进行中"),
    STEADY(1, "稳态"),
    SUCCESS(2, "完成"),
    ERROR(3, "失败");

    WorkFlowInstanceStateEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private Integer code;

    private String desc;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
